package com.info.zhiduoduo.repository.entity.crm;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 管理员
 * </p>
 *
 * @author bob
 * @since 2020-04-02
 */
@Data
@Accessors(chain = true)
@TableName("zdd_crm_system_manager")
public class CrmSystemManager extends Model<CrmSystemManager> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "managerid", type = IdType.AUTO)
    private Integer managerid;
    /**
     * 登录名
     */
    private String loginname;
    /**
     * 用户名
     */
    private String managername;
    /**
     * 微信名
     */
    @TableField("wechat_name")
    private String wechatName;
    private String password;
    /**
     * 角色ID
     */
    private Integer roleid;
    /**
     * 1正常 2冻结
     */
    private Integer state;
    /**
     *  商务经理ID
     */
    @TableField("business_manager_id")
    private Integer businessManagerId;


    @Override
    protected Serializable pkVal() {
        return this.managerid;
    }

}
